<template>
	<view class="content">
		<view class="hei20"></view>
		<view class="hei20"></view>
		<view class="wid90 mar borRad20 bacFFF" style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0,0,0,0.1);">
			<view class="hei20"></view>
			<view class="wid85 mar mar-top10">
				<view class="dis disAl">
					<image src="../../static/mendian2.png" style="width: 127rpx;height: 127rpx;"></image>
					<view class="foSi50 fowe800" style="margin-left: 40rpx;color: #37BCC3;">{{gasstation.name}}</view>
				</view>
				<view class="dis disAl" style="margin-top: 55rpx;">
					<image src="../../static/weizhi2.png" style="width: 24rpx;height: 30rpx;"></image>
					<view class="foSi30 mar-left20">{{gasstation.address}}</view>
				</view>
				<view class="dis disAl mar-top30">
					<image src="../../static/dianhua3.png" style="width: 30rpx;height: 24rpx;"></image>
					<view class="foSi30 mar-left20">{{gasstation.mobile}}</view>
				</view>
				<view class="dis disAl mar-top30">
					<image src="../../static/yingye1.png" style="width: 28rpx;height: 28rpx;"></image>
					<view class="foSi30 mar-left20">{{gasstation.start_time+'-'+gasstation.end_time}}</view>
				</view>
			</view>
			<view class="hei20"></view>
			<view class="hei20"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: this.global.url,
				gasstation: ''
			}
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList() {
				var that = this;
				uni.request({
					url: that.global.url + '/api/qianyu_petrol/gasstation_index',
					method: "POST",
					header: {
						'site-id': that.global.site_id, //自定义请求头信息
					},
					data: {
						id: uni.getStorageSync('jiaId')
					},
					success(res) {
						let result = res.data
						console.log(result)
						if (result.code == 1) {
							that.gasstation = result.data
						}
					}
				})
			},
		}
	}
</script>

<style>
	.content {
		background: #F6F9FE;
		height: 100vh;
	}
</style>